namespace mplat {

    /** obj转换为query字符串 */
    export function object2Query(data: any) {
        if (!data) return '';
        let temp = ''
        for (var key in data) {
            if (!data[key]) {
                if (typeof data[key] != 'number') {
                    continue;
                }
            }
            if (temp != "") {
                temp += "&"
            }
            temp += key + "=" + data[key];
        }
        return temp;
    }
}